<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>资金明细</title>
		<script src="../js/base.js"></script>
		<link rel="stylesheet" type="text/css" href="../css/count_list.css"/>
		<script src="../js/trades/count_list.js"></script>
	</head>
	<body ms-controller="root">
		<div class="top"><span class="left_arrow bgBox" onclick="javascript:location.href='/user/index';"></span>资金明细</div>
		<div class="types hidden">
			<div class="w20 fl tc" ms-class-choosetype="currentType==1" ms-click="ChooseType(1)" id="all">全部</div>
			<div class="w20 fl tc" ms-class-choosetype="currentType==2" ms-click="ChooseType(2)" id="chongzhi">充值</div>
			<div class="w20 fl tc" ms-class-choosetype="currentType==3" ms-click="ChooseType(3)" id="tixian">提现</div>
			<div class="w20 fl tc" ms-class-choosetype="currentType==4" ms-click="ChooseType(4)" id="kaicang">开仓</div>
			<div class="w20 fl tc" ms-class-choosetype="currentType==5" ms-click="ChooseType(5)" id="jiesuan">结算</div>
		</div>
		<div class="count_lists mt10">
			<#list user as users>
					<div class="count_list mb5 hidden">
                        <div class="w50 fl">
                            <div class="f14 color_ef">
								<#if users.data_type==1>
								    充值
								</#if>
								<#if users.data_type==2>
								    提现
								</#if>
								<#if users.data_type==3>
								    开仓
								</#if>
								<#if users.data_type==4>
								    结算
								</#if>
								</div>
                            <div class="f12 color999 mt10">${users.add_time?string("yyyy-MM-dd HH:mm:ss")}  </div>
                        </div>
                        <div class="w50 fl tr">
                            <div class="f14 color_ef">${users.money}</div>
                            <div class="f12 color999 mt10">可用余额${users.balance}</div>
                        </div>
                    </div>
			</#list>
		</div>
	</body>
    <script type="text/javascript">
        (function(){
            var navVM;
            avalon.ready(function(){
                navVM = avalon.define({
                    $id:"nav",
                    currentNav:-1,
                    navs:[
                        {
                            id:0,
                            uncheckpic:"../img/5_default.png",
                            checkpic:"../img/5_focus.png",
                            column:"行情",
                            url:"trade/index"
                        },{
                            id:1,
                            uncheckpic:"../img/2_default.png",
                            checkpic:"../img/2_focus.png",
                            column:"交易",
                            url:"trade/order_list"
                        },{
                            id:2,
                            uncheckpic:"../img/3_default.png",
                            checkpic:"../img/3_focus.png",
                            column:"服务",
                            url:"#"
                        },{
                            id:3,
                            uncheckpic:"../img/4_default.png",
                            checkpic:"../img/4_focus.png",
                            column:"发现",
                            url:"infor_index"
                        },{
                            id:4,
                            uncheckpic:"../img/1_default.png",
                            checkpic:"../img/1_focus.png",
                            column:"我的",
                            url:"user/index"
                        }
                    ],
                    switchTab:function(idx,e){
                        e.stopPropagation();
                        navVM.currentNav = idx;
                        var u = navVM.navs[navVM.currentNav].url;
                        if(navVM.currentNav==2){
                            location.href="#";  //跳转至指定的页面
                        } else{
                            location.href="../"+u;  //跳转至指定的页面
                        }
                    },
                });
            });
            Menu.current = function(shownum){
                navVM.currentNav=shownum;
            }
            Menu.exec();
        })()
    </script>
</html>
